class NewsActiveSearchService extends SessionService
Service for managing active news searches within a session context.
- Annotations
- @Singleton() @Slf4j()
- Alphabetic
- By Inheritance
- NewsActiveSearchService
- SessionService
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
- Private
Instance Constructors
- new NewsActiveSearchService(repository: NewsActiveSearchRepository)
- Annotations
- @Inject()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearSession(sessionId: Optional[String]): CompletionStage[Void]
Clears all active searches for a specific session.
Clears all active searches for a specific session.
- sessionId
The session ID
- returns
A CompletionStage of the clearing operation
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def getActiveSearch(form: NewsForm, sessionId: Optional[String]): CompletionStage[Optional[ActiveSearch]]
Retrieves a specific active search by form for a given session.
Retrieves a specific active search by form for a given session.
- form
The news form associated with the active search
- sessionId
The session ID
- returns
A CompletionStage of an optional active search
- def getActiveSearches(sessionId: Optional[String]): CompletionStage[List[ActiveSearch]]
Retrieves all active searches for a given session.
Retrieves all active searches for a given session.
- sessionId
The session ID
- returns
A CompletionStage of active searches
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def performSessionOperation[T](sessionId: Optional[String], operation: Function[String, CompletionStage[T]]): CompletionStage[T]
Performs an operation that requires a valid session ID.
Performs an operation that requires a valid session ID.
- sessionId
The session ID
- operation
The operation to perform
- returns
Completion stage containing the result of the operation
- Attributes
- protected[service]
- Definition Classes
- SessionService
- def registerSearch(form: NewsForm, sessionId: Optional[String]): CompletionStage[ActiveSearch]
Registers a new active search to the repository for a given session.
Registers a new active search to the repository for a given session.
- form
The news form to register as an active search
- sessionId
The session ID
- returns
A CompletionStage of the registered active search
- def removeActiveSearch(form: NewsForm, sessionId: Optional[String]): CompletionStage[Void]
Removes a specific active search from a session.
Removes a specific active search from a session.
- form
The news form associated with the active search to remove
- sessionId
The session ID
- returns
A CompletionStage of the removal operation
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateLatestResult(form: NewsForm, searchResultUuid: UUID, sessionId: Optional[String]): CompletionStage[ActiveSearch]
Updates the latest search result for an existing active search.
Updates the latest search result for an existing active search.
- form
The news form associated with the active search
- searchResultUuid
The latest search result UUID
- sessionId
The session ID
- returns
A CompletionStage of the updated active search
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)